Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add setToken API for OAuthBearer authentication flow #1075

Merged

Conversation

andrewstanovsky
Copy link
Contributor

@andrewstanovsky andrewstanovsky commented Apr 16, 2024

This change adds new setToken API based on librdkafka's one to allow node-rdkafka clients authenticate using OAuthBearer flow. SetToken accepts token string only, no expiry is expected as it's always set to maximum value with librdkafka at C++ level. The client code is supposed to call setToken again to refresh a token when needed. The expiry is used in refresh callback flow of librdkafka which is not used in this change to avoid complexity.

@andrewstanovsky andrewstanovsky force-pushed the astanovsky/oauthbearer_set_token branch from 7d339f7 to 3ec6942 Compare April 16, 2024 17:08
@andrewstanovsky andrewstanovsky force-pushed the astanovsky/oauthbearer_set_token branch from 3ec6942 to 826b98d Compare April 16, 2024 18:25
@GaryWilber GaryWilber merged commit f594d11 into Blizzard:master Apr 18, 2024
6 checks passed
@andrewstanovsky andrewstanovsky deleted the astanovsky/oauthbearer_set_token branch April 18, 2024 16:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants